#ifndef     __MOTORS_H
#define     __MOTORS_H

#include "../utils/nocopyable.h"
#include "../utils/object.h"
#include "../utils/error.h"

namespace cargo_driver {

class Motors : public Object<Motors>, private NoCopyable {

public:
    static constexpr uint32_t BOX_MOTOR_TIMEOUT = 5 * 1000;

    void init();

    Error box_up();
    Error box_down();

    void comp_open();
    void comp_close();
};

extern Motors motors;

}



#endif
